<?php $this->load->view('layout/header');?>
<?php js('admin', 'calendar');?>
<?php css('admin', 'calendar');?>
    <div class="container-fluid">
        <div class="row-fluid">
            <div class="span12">
                <h3 class="page-title">抽奖管理 <small>奖品管理</small></h3>
                <?php echo breadcrumb(array('activitylottery/index'=>'抽奖活动', 'lotteryprize/index?'.getLotteryUrl(1)=>'抽奖奖品管理', '奖品每日数量')); ?>
            </div>
        </div>
        <?php echo execute_alert_message()?>
        <div class="supplier-content-page">
            <div class="product-test-h5">
                <div class="hotel-table add-supplieruid-html">
                    <?php echo $generate;?>
                </div>
                <div class="help-center">
                    <i class="glyphicon glyphicon-question-sign"></i><span>帮助中心</span>
                    <div class="help-block">
                        <p>修改当日数量：双击选择日期</p>
                        <p>批量修改抽奖数量：鼠标按住拖选日期</p>
                        <p>选择修改抽奖数量：ctrl+单击日历</p>
                    </div>
                </div>
            </div>
            <div class="hotel-geiyed">
                <div class="atcle-append">
                    <h3>
                        <div class="atcle-date-to"> </div>
                        <div class="atcle-date-right newclear">
                            <span class="atter">奖品数量</span></span>
                        </div>
                    </h3>
                    <div class="fen-one">
                        <form class="line-form" method="post" action="<?php echo site_url('prizeeveryday/addBatchPost'); ?>">
                            <input name="date" type="hidden">
                            <input name="prize_id" type="hidden" value="<?php echo $prize->prize_id;?>">
                            <input name="lottery_id" type="hidden" value="<?php echo $this->input->get('lottery_id');?>">
                            <div class="alert-nearew newclear">
                                <div class="alert-sell newclear">
                                    <span>可用数量:</span>
                                    <input type="text" name="quantity" class="required number">
                                </div>
                                <div class="alert-sell newclear">
                                    <span>中奖概率:</span>
                                    <input type="text" name="probability" class="required number" value="0">
                                </div>
                                <div class="alert-sell newclear">
                                    <span>抽奖状态:</span>
                                    <select class="alert-select required" name="status">
                                        <option value="1">可抽奖</option>
                                        <option value="2">不可抽奖</option>
                                    </select>
                                </div>
                                <div class="alert-sell newclear">
                                    <span>指定中奖者:</span>
                                    <input type="text" name="winners_user" placeholder="name,name,name">
                                </div>
                                <div class="alert-sell newclear">
                                    <span>中奖起始时间:</span>
                                    <input type="text" name="start_time" placeholder="指定中奖时间，如 HH:mm">
                                </div>
                                <div class="alert-sell newclear">
                                    <span>中奖结束时间:</span>
                                    <input type="text" name="end_time" placeholder="指定中奖时间，如 HH:mm">
                                </div>
                            </div>
                            <div class="alert-submit">
                                <button type="submit">提交</button>
                                <button type="button" class="cancelButton">取消</button>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
<?php $this->load->view('layout/footer');?>